<template>
  <section>

  </section>
</template>
<script>
  var moment = require("moment")

  import urlObj from 'url';
  import qsObj from 'qs';

  export default {
    test: {},
    me: {
      info: {}

    },
    mer: {

    },
    qs(query) {
      if (!query) {
        query = urlObj.parse(window.location.href).query
      }

      var qs = qsObj.parse(query)
      return qs;
    },
    qsStr(q) {

      var str = qsObj.stringify(q)

      return str
    },
    queryChange(o) {


    },
    map: {
      lng: 118.169242,
      lat: 36.186887

    },

    token: {},
    back() {

      history.go(-1)
    },
    power() {

    },
    fmtDate(dateTime, fmtStr) {
      if (!fmtStr) {
        fmtStr = "YYYY-MM-DD HH:mm"
      }

      return moment(dateTime).format(fmtStr)

    },
    data() {
      return {

      };
    },
    methods: {

    },
    mounted() {

    },
    props: {

    },
    components: {

    },

  };

</script>
<style scoped>
</style>
